package com.by.entity.purchase;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.by.entity.common.Attachment;
import lombok.Data;

import java.util.List;

@Data
@TableName("c_enquiry")
public class Enquiry {

    @TableId(type = IdType.INPUT)
    String id;
    String code;
    String subject;
    @TableField("sourceType")
    String sourceType;
    @TableField("sourceSubject")
    String sourceSubject;
    @TableField("sourceId")
    String sourceId;
    @TableField("priceUser")
    String priceUser;
    @TableField("enquiryDate")
    String enquiryDate;
    @TableField("enquiryUser")
    String enquiryUser;
    String project;
    String note;
    @TableField("purchaseDetailId")
    String purchaseDetailId;

    @TableField(exist = false)
    List<Attachment> attachments;
    @TableField(exist = false)
    EnquiryProduct enquiryProduct;
    @TableField(exist = false)
    List<EnquiryDetail> enquiryDetails;
}
